package com.itheima.model.common.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;

import lombok.Data;

@Data
@TableName("account")
public class Account {
    /**
     * 主键id
     */
    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;
    /**
     * 用户id
     */
    @TableField(value = "uid")
    private Integer uid;
    /**
     * 银行卡号
     */
    @TableField(value = "cardno")
    private String cardno;
    /**
     * 余额
     */
    @TableField(value = "remaining")
    private BigDecimal remaining;
}
